Test Series - java script

Test Number 50/92

Q: What are the features of an interpreter?
A. Shared with other properties
B. Embedded in other tools
C. Shared with other properties & Embedded in other tools
D. Used with html
Solution:  A JavaScript engine is a program or an interpreter which executes JavaScript code. The interpreter can be shared with other properties, or embedded in other tools.
Q: Why is the total size of the page important?
A. Time taken to download
B. Size of IP packet should be less than 65500
C. Size of IP packet should be less than 65535
D. Size of IP packet should be greater than 65500
Solution: The total size of the page is important, not just because of the time it takes to download, but because the maximum size of an IP packet is 65535 octets for IPv4 and IPv6.
Q: How will the HTTP GET request be sent from the browser?
A. Remote server
B. Local server
C. By itself
D. Standby Server
Solution: The two most common methods of http are get and post. Once the TCP/IP connection has been established, the browser sends an HTTP GET request over the connection to the remote server. The remote server finds the resource and returns it in an HTTP Response, the status of which is 200 to indicate a good response.
Q: What is the return type of the remote server?
A. HTTP Response
B. HTTP Request
C. Get Request
D. Post request
Solution: The remote server finds the resource and returns it in an HTTP Response, the status of which is 200 to indicate a good response. 400 status code is used to indicate a bad request.
Q: Which layer is used to control the communication between the hardware in the network?
A. Network Access Layer
B. Internet Layer
C. Transport Layer
D. Presentation Layer
Solution: The Network Access Layer is the lowest layer of the TCP/IP protocol hierarchy. The Network Access layer controls the communication between the hardware in the network.
Q: Which layer is used to handle the network addressing and routing?
A. Network Access Layer
B. Internet Layer
C. Transport Layer
D. Presentation Layer
Solution: The internet layer is a group of internetworking methods, protocols, and specifications in the Internet protocol suite that are used to transport network packets from the originating host across network boundaries. The Internet layer handles network addressing and routing, getting IP and MAC addresses.
Q: The layer in which the TCP (or UDP) communication takes place is _____________
A. Network Access Layer
B. Internet Layer
C. Transport Layer
D. Presentation Layer
Solution: The transport layer is the layer in the open system interconnection (OSI) model responsible for end-to-end communication over a network. The Transport layer is where our TCP (or UDP) communication takes place.
Q: Which layer handles top-level communication?
A. Network Access Layer
B. Internet Layer
C. Transport Layer
D. Application Layer
Solution: An application layer is an abstraction layer that specifies the shared communications protocols and interface methods used by hosts in a communications network. The Application layer handles the top-level communication that the client and servers use, like HTTP and SMTP for email clients.
Q: What are the various possessions in the three-way handshake by the TCP?
A. Synchronize
B. Synchronize-Acknowledge
C. Acknowledge message
D. All of the mentioned
Solution: TCP stands for transmission control protocol which controls the transmission of data over the internet. This handshake consists of a Synchronize, Synchronize-Acknowledge, and Acknowledge message to be passed between the browser and the remote server. This handshake allows the client to attempt communication, the server to acknowledge and accept the attempt, and the client to acknowledge that the attempt has been accepted.
Q: Arrange the TCP/IP model layers in the order from farthest to closest to the end user.
A. Network Access Layer, Internet Layer, Application Layer, Transport Layer
B. Network Access Layer, Transport Layer, Internet Layer, Application Layer
C. Network Access Layer, Internet Layer, Transport Layer, Application Layer
D. Network Access Layer, Application Layer, Internet Layer, Transport Layer
Solution: TCP stands for Transmission Control Protocol. The TCP/IP model is a concise version of the OSI model. The four layers in the TCP/IP model are, in order from farthest to closest to the end user, the Network Access layer, the Internet layer, the Transport layer, and the Application layer.

You Have Score    /10